package day07home;
//找到2到100之间的所有素数(质数)
public class PrimeNumber {
    public static void main(String[] args) {
        for (int a = 2; a <= 100; a++) {
            boolean flag = true;
            for (int b = 2; b <= a / 2; b++) {
                if (a % 2 == 0) {
                    flag = false;
                    break;
                }
            }
            if (flag) {
                System.out.print(a + "\t");
            }
        }
    }
}


